import itchat

# 登录微信
itchat.auto_login(hotReload=True)

# 发送消息给好友
friend = itchat.search_friends(name='亲姐')[0]['UserName']
itchat.send('Hello, this is a test message!', toUserName=friend)

# 发送消息给文件传输助手
itchat.send('Hello, File Helper!', toUserName='filehelper')

# 退出登录
itchat.logout(
